home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / ColorSync SDK / Sample Code / CSDemo 2.1 / CSDemoSources / winProfile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-13  |  1.6 KB  |  63 lines  |  [TEXT/CWIE]

  1.  
  2. #ifndef _WINDOWPROFILE_
  3. #define _WINDOWPROFILE_
  4.  
  5.  
  6. #ifndef __TYPES__
  7. #include <Types.h>
  8. #endif
  9.  
  10. #ifndef __QUICKDRAW__
  11. #include <QuickDraw.h>
  12. #endif
  13.  
  14. #ifndef __CMAPPLICATION__
  15. #include <CMApplication.h>
  16. #endif
  17.  
  18. #ifndef _WIN_
  19. #include "win.h"
  20. #endif
  21.  
  22.  
  23. /**\
  24. |**| ==============================================================================
  25. |**| PUBLIC DEFINES
  26. |**| ==============================================================================
  27. \**/
  28. #define kProfileType            'Prof'            // profile window tag
  29. #define kFileSubType            'file'
  30. #define kEmbededSubType            'embd'
  31. #define kSysProfSubType            'sysp'
  32.  
  33.  
  34. /**\
  35. |**| ==============================================================================
  36. |**| PUBLIC TYPEDEFS
  37. |**| ==============================================================================
  38. \**/
  39. typedef struct ProfileData
  40. {
  41.     CMProfileRef            ProfileRef ;    
  42.     unsigned long            Index ;            // if kEmbededSubType then this tells us which one
  43.     unsigned long            Mode ;
  44.  
  45. } ProfileDataRec, *ProfileDataPtr, **ProfileDataHdl ;
  46.  
  47.  
  48. /**\
  49. |**| ==============================================================================
  50. |**| PUBLIC FUNCTION PROTOTYPES
  51. |**| ==============================================================================
  52. \**/
  53. void        winUpdateProfile        ( winHandle win, EventRecord *e) ;
  54. void        winClickProfile            ( winHandle win, EventRecord *e ) ;
  55. void        winMenuProfile            ( winHandle win, long menuResult, Boolean *didit ) ;
  56. void        winUpdateMenusProfile    ( winHandle win ) ;
  57. OSErr        winAllocProfile            ( winHandle win ) ;
  58. OSErr        winOpenProfile            ( winHandle win ) ;
  59. void        winCloseProfile            ( winHandle win ) ;
  60. void        winDisposeProfile        ( winHandle win ) ;
  61.  
  62.  
  63. #endif